import {ref} from "vue";
export function useLoading(){
    const isLoading = ref(false); //是否加载
    const loadingText = ref('Loading');
    const loading = () => {
        isLoading.value = true;
    }

    const done = () => {
        isLoading.value = false;
    }

    return {
        isLoading,
        loading,
        done,
        loadingText
    }
}
